package com.kitbox.hl.meshow.openid.oauth2.clientdetails;

import com.kitbox.hl.meshow.openid.oauth2.clientdetails.Impl.MongoClientDetailsServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: honglei
 * @Date: 2019/7/11 15:32
 * @Version: 1.0
 * @See:
 * @Description:
 */
@Configuration
public class ClientDetailConfig {

    @ConditionalOnMissingBean(MyClientDetailsService.class)
    @Bean(name = "mongoClientDetailsService")
    public MyClientDetailsService getMongoClientDetailsService() {
        return new MongoClientDetailsServiceImpl();
    }
}
